//
//  MainMenuScreen.h
//  ;
//
//  Created by K3 on 5/23/12.
//  Copyright (c) 2012 __MyCompanyName__. All rights reserved.
//

#import "GameLayer.h"
#import "cocos2d.h"
#import "Define.h"
#import "Sound.h"
#import "MapInfoPopup.h"
#import "CharacterInfoPopup.h"
#import "PlayerData.h"

//define tag for all sprite
enum {
    TAG_BACKGROUND_SPRITE = 0,
    TAG_GAME_NAME_IMAGE_SPRITE = 1,
    TAG_MENU_CHAIN_PLAY_ITEM = 2,
    TAG_SPEAKER_MENU = 3,
    TAG_MENU_ITEM_TABLE = 4,
    TAG_NEW_GAME_MENU_ITEM = 5,
    TAG_BUTTON_GAME_CENTER = 6
};

@interface MainMenuScreen : GameLayer {
    CCSprite *backgroundSprite;
    CCSprite *playChainMenuItem;
    CCSprite *menuTable;
    CCSprite *gameNameImage;
    
    CCLabelTTF *playerTitle;
    CCLabelTTF *playerNameLabel;
    CCLabelTTF *playerName;
    CCSprite *starIcon;
    CCLabelTTF *starCountText;
    CCSprite *lifeIcon;
    CCLabelTTF *lifeCountText;
    
    CCMenu *menuButtonGameCenter;
    CCMenu *myMenu;
    CCMenu *newGameMenu;
    CCMenu *speakerMenu;
    
    PlayerData *playerData;
}

-(id)initWith:(iCoreGUIController *)_mainGUIController;
-(void)loadResource;
-(void)drawPlayerInfo;
-(void)startAnimation;
-(void)startChainMenuItemAnimation;
-(void)startPress:(CCMenuItemImage *)sender;
-(void)muteAllSound:(id)sender;
-(void)showMenuTable;
-(void)startNewGame;

-(void)connectGameCenter;

@end
